@extends('layouts.admin')
@section('content')
        <!--面包屑导航 开始-->
<div class="crumb_warp">
    <i class="fa fa-home"></i> <a href="{{ url('/admin/info') }}">首页</a> &raquo; 系统基本信息
</div>
<!--面包屑导航 结束-->



<div class="result_wrap">
    <div class="result_title">
        <h3>系统基本信息</h3>
    </div>
    <div class="result_content">
        <ul>
            <li>
                <label>操作系统</label><span>{!! PHP_OS !!}</span>
            </li>
            <li>
                <label>运行环境</label><span>{{ $_SERVER['SERVER_SOFTWARE'] }}</span>
            </li>
            <li>
                <label>PHP运行方式</label><span>{!! php_sapi_name() !!}</span>
            </li>
            <li>
                <label>静静设计-版本</label><span>v-0.1</span>
            </li>
            <li>
                <label>上传附件限制</label><span><?php echo get_cfg_var ("upload_max_filesize")?get_cfg_var ("upload_max_filesize"):"不允许上传附件"; ?></span>
            </li>
            <li>
                <label>北京时间</label><span id="time"></span>
            </li>
            <li>
                <label>服务器域名/IP</label><span>{{$_SERVER['SERVER_NAME']}} [ {{$_SERVER['REMOTE_ADDR']}} ]</span>
            </li>
            <li>
                <label>Host</label><span>{{ $_SERVER['REMOTE_ADDR'] }}</span>
            </li>
        </ul>
    </div>
</div>
<!--结果集列表组件 结束-->
@endsection
<?php
echo '<script type="text/javascript">
    var dayNames = new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
    function get_obj(time){
        return document.getElementById(time);
    }
    var ts='.(round(microtime(true)*1000)).';
    function getTime(){
        var t=new Date(ts);
        with(t){
            var _time=""+getFullYear()+"年" + (getMonth()+1)+"月"+getDate()+"日&nbsp;&nbsp;" + (getHours()<10 ? "0" :"") + getHours() + "时" + (getMinutes()<10 ? "0" :"") + getMinutes() + "分" + (getSeconds()<10 ? "0" :"") + getSeconds() + "秒&nbsp;&nbsp;" + dayNames[t.getDay()];
        }
        get_obj("time").innerHTML=_time;
        setTimeout("getTime()",1000);
        ts+=1000;
    }

    window.onload = function(){
        getTime();
    }
</script>';
?>